﻿using System;
using System.Drawing;
using SlimDX;
using SlimDX.Direct3D11;
using SlimDX.DXGI;
using SlimDX.Windows;
using SlimDX.D3DCompiler;
using Device = SlimDX.Direct3D11.Device;

using Vxl;
using Vxl.Utils;
using System.Collections.Generic;
using Vxl.Cameras;
using Vxl.Drawables;

namespace Sandbox
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            RenderForm form = new RenderForm("SlimDX - MiniTri Direct3D 11 Sample");

            VxlEngineSetupHelper.Setup(form);

            WASDCamera camera = new WASDCamera(new Vector3(5, 0, 0), new Vector3(0,0,0));
            VxlEngineSetupHelper.vxlEngine.SetCamera(camera);

            VxlObject vo = new VxlObject();

            for (int i = 0; i < 100; i++){
                for (int j = 0; j < 100; j++)
                {
                    vo.AddVxl(new Vector3((float)i, 0.0f, (float)j), new Vector4(1.0f, 1.0f, 1.0f, 1.0f)
                        /*new Vector4((float)Color.BurlyWood.R/255.0f,
                        (float)Color.BurlyWood.G / 255.0f,
                        (float)Color.BurlyWood.B / 255.0f,
                        (float)Color.BurlyWood.A / 255.0f)*/);
                }
            }
            
            VxlEngineSetupHelper.vxlEngine.AddVxlObject(ref vo);

            VxlEngineSetupHelper.Run();
        }
    }
}
